#include <cstdio>
#include <cstdlib>
#include "gtest/gtest.h"
#include "MyList.h"

TEST(MyListTest,CPPTemplateTest2 )
{
	MyList<int> *ml = new MyList<int>();
	ml->push_front(3);
	ml->push_back(2);
	ml->insert(ml->begin(),1);
	
	for (MyList<int>::iterator it = ml->begin(); it != ml->end(); it++)
	{
		std::cout<< *it << std::endl;
	}
	
	MyList<int> l2(*ml);

	ml->clear();
	delete ml;
	ml = NULL;
	
}
